package com.atguigu.day06;

public class Test07 {
    public static void main(String[] args) {
        System.out.println(eatPeach(10));
    }

    static int eatPeach(int i) {
        if (i == 1) {
            return 1;
        } else {
            return 2 * (eatPeach(i - 1) + 1);
        }
    }
}
/*
f(10)=f(9)/2-1
f(9)=f(8)/2-1
 */
